<%@ include file="/WEB-INF/import/tagLibs.jsp" %>
<%@ page import="com.pmsco.pms.util.BundleUtil"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>
			<tiles:useAttribute name="title"/>
			<spring:message code="${title}" />
		</title>
		<link rel="stylesheet" type="text/css" media="screen" href="resources/css/pmsstyle.css" />
		<% 
			String browser = request.getHeader("User-Agent");
			if(browser.indexOf("MSIE") > 0) {
		%>	
			<link rel="stylesheet" type="text/css" media="screen" href="resources/css/pmsstyle.ie.css"/>
		<% } else { %>	
			<link rel="stylesheet" type="text/css" media="screen" href="resources/css/pmsstyle.ff.css"/>
		<% } %>
		<link rel="stylesheet" type="text/css" media="screen" href="resources/js/jQuery/css/smoothness/jquery-ui-1.8.24.custom.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="resources/js/jQuery/development-bundle/themes/smoothness/jquery.ui.all.css" />
		<link rel="stylesheet" type="text/css" media="screen" href="resources/css/pmsJQueryStyleOverride.css" />
		<link rel="stylesheet" type="text/css" href="resources/js/jQueryPlugins/ddsmoothmenu/css/ddsmoothmenu.css" />
		<link rel="stylesheet" type="text/css" href="resources/js/jQueryPlugins/ddsmoothmenu/css/ddsmoothmenu-v.css" />
		<script type="text/javascript" src="resources/js/jQuery/jquery-1.8.2.js"></script>
		<script type="text/javascript" src="resources/js/jQuery/js/jquery-ui-1.8.24.custom.min.js"></script>
		<script type="text/javascript" src="resources/js/jQueryPlugins/validation/dist/jquery.validate.js"></script>
		<script type="text/javascript" src="resources/js/jQueryPlugins/ddsmoothmenu/js/ddsmoothmenu.js"></script>
		<script type="text/javascript" src="resources/js/pms.js"></script>
		<%@ include file="/WEB-INF/import/validationMessage.jsp" %>
		<%@ include file="/WEB-INF/import/commonDialog.jsp" %>
		<tiles:useAttribute name="enableAutoFocus"/>
		<c:if test="${enableAutoFocus}">
			<script type="text/javascript">
				$(document).ready(function() {
				    $('form:first *:input[type!=hidden]:first').focus();
				});
			</script>
		</c:if>
	</head>
	<body class="pmsWrapperBody">
		<form:form id="pmsTopForm" name="pmsTopForm">
			<table class="pmsWrapperTable" cellpadding="0" cellspacing="0">
				<tr>
					<td>
						<tiles:insertAttribute name="header" />
					</td>
				</tr>
				<tr>
					<td>
						<tiles:insertAttribute name="menu" />
					</td>
				</tr>
				<tr class="pmsMinHeight">
					<td class="pmsMainTableWrapperTd">
						<table width="100%" height="100%" class="pmsMinHeight">
							<tr>
								<td class="pmsCaption">
									<tiles:useAttribute name="caption"/>
									<spring:message code="${caption}" />
								</td>
							</tr>
							<tr>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td height="100%">
									<tiles:insertAttribute name="body" />
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<tiles:insertAttribute name="footer" />
					</td>
				</tr>
			</table>		
		</form:form>
	</body>
</html>